﻿#region Using Statements
using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Graphics;
using RhinoXNA.RhinoGraphics.Rhino2D;
using System.Collections.Generic;
#endregion

namespace RhinoXNA.RhinoGraphics.Rhino2D
{
    public abstract class IMenuItem : IRhinoDrawable
    {
        protected SpriteEntity _sprite;
        //protected FontEntity _font;

        public SpriteEntity Sprite
        {
            get { return _sprite; }
        }

        public IMenuItem(RhinoXNAAdapter adapter, List<String> parameters)
            : base(adapter.SpriteBatch)
        {
            
        }

        #region IDrawable Members
        public override void Update(GameTime gameTime)
        {
            Animate(gameTime);
            _sprite.Update(gameTime);
            //_font.Update(gameTime);
        }

        public override void Render()
        {
            _sprite.Render();
            //_font.Render();
        }
        #endregion

        protected abstract void Animate(GameTime gameTime);

        public override void Initialize(string fileToLoad)
        {
            throw new NotImplementedException();
        }
    }
}
